#ifndef _SKIN_CONTORL_H_
#define _SKIN_CONTORL_H_

#include "SkinElement.h"

class CSkinControl : public CSkinElement {
public:
	CSkinControl() : m_hWnd(NULL),
		m_bNeedRefresh(FALSE),
		m_bAdjHScroll(FALSE),
		m_bIconLabelButton(FALSE),
		m_bImage4State(FALSE)		
	{
		m_sizeMarginLT.cx = 0;
		m_sizeMarginLT.cy = 0;
		m_sizeMarginRB.cx = 0;
		m_sizeMarginRB.cy = 0;
	}

protected:
	SIZE m_sizeMarginLT;
	SIZE m_sizeMarginRB;
	
public:	
	CString m_strCaption;		
	CRect m_rectSrcImage;
	
	HWND m_hWnd;
	BOOL m_bNeedRefresh;
	BOOL m_bAdjHScroll;
	BOOL m_bIconLabelButton;	
	BOOL m_bImage4State;	

	virtual BOOL Load(TiXmlNode * pNode);	
	virtual void ReloadImage();

public:	
	void GetControlRect(LPRECT lpRect);
	void GetMarginRect(LPRECT lpRect);
};

#endif